﻿using System;
using System.Windows.Forms;
using bbtpClient.Controllers;

namespace bbtpClient
{
    public partial class TransportManagerStartup : Form
    {
        public TransportManagerStartup()
        {
            InitializeComponent();
            label_UserName.Text = UserInfo.Name;
        }

        private void button_Logout_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button_AddTransportCompany_Click(object sender, EventArgs e)
        {
            TransportManagerController.ShowAddTransportCompanyForm();
        }

        private void button_EditTransportCompaniesList_Click(object sender, EventArgs e)
        {
            TransportManagerController.ShowEditTransportCompaniesListForm();
        }

        private void button_SetTransportCompanyOrder_Click(object sender, EventArgs e)
        {            
            TransportManagerController.ShowSetTransportCompanyForOrder();
        }

        private void button_SetTransportCompanyReturn_Click(object sender, EventArgs e)
        {
            TransportManagerController.ShowSetTransportCompanyForReturnOrder();
        }
    }
}